﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FastMVVM.Core;
using FastMVVM.WPF4.Template.Model;

namespace FastMVVM.WPF4.Template.ViewModel
{
    public class MainWindowViewModel : ViewModelBase
    {
        public event EventHandler ShowMessage;

        [NotifyPropertyChanged]
        public virtual Message Message { get; set; }

        public void LoadMessage()
        {
            Message = new Message("Hello World!");

            ShowMessage.Invoke(this, new EventArgs());
        }
    }
}
